<template>
  <div class="goods">
    <item v-for="(item,index) in goods " :key="index" :list="item"></item>
  </div>
</template>

<script>
import item from'./item.vue'
export default {
  name:'z1',
  components:{
    item
  },
  props:{
    goods:{
      type:Array,
      default(){
        return[]
      }
    }
  },
  created(){
    console.log(this.goods);
  }
}
</script>

<style>
.goods{
  display: flex;
  flex-wrap:wrap;
  justify-content:space-around ;
}
</style>